package com.threefish.modules.sys.entity.monitor;

import com.threefish.common.entity.AbstractBaseEntity;
import org.nutz.dao.entity.annotation.*;

/**
 * Created with IntelliJ IDEA.
 * User: 黄川
 * Date Time: 2015/9/1416:54
 */
@Table("sys_quartz_job")
@Comment("定时任务信息表")
public class QuartzJob extends AbstractBaseEntity {

    @Name
    @Prev(els = @EL("$me.uuid()"))
    @ColDefine(width = 32, notNull = true)
    @Comment("主键")
    @Column("uuid")
    private String uuid;

    /**
     * 任务名称
     */
    @Column("job_name")
    private String jobName;
    /**
     * 任务类路径
     */
    @Column("job_klass")
    private String jobKlass;

    /**
     * 任务类表达式
     */
    @Column("job_corn")
    private String jobCorn;

    /**
     * 任务描述
     */
    @Column("job_desc")
    private String jobDesc;

    /**
     * 任务排序号
     */
    @Column("job_short")
    private int jobShort;

    /**
     * 任务组
     */
    @Column("job_group")
    private String jobGroup;

    /**
     * 任务状态
     */
    @Column("job_status")
    private String jobStatus;


    /**
     * 运行参数
     */
    @Column("job_args")
    @ColDefine(width = 1000)
    private String args;

    /**
     * 任务最后一次执行情况
     */
    @Column("job_last_status")
    private boolean jobLastStatus;

    /**
     * 任务最后一次执行时长
     */
    @Comment("花费时长")
    @Column("last_consuming")
    private String lastConsuming;

    /**
     * 任务类型 （0随服务启动|1手动启动）
     */
    @Column("job_type")
    private int jobType;

    /**
     * 启动后的任务名
     */
    @Column("job_run_name")
    private String jobRunName;

    public String getLastConsuming() {
        return lastConsuming;
    }

    public void setLastConsuming(String lastConsuming) {
        this.lastConsuming = lastConsuming;
    }

    public String getArgs() {
        return args;
    }

    public void setArgs(String args) {
        this.args = args;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobKlass() {
        return jobKlass;
    }

    public void setJobKlass(String jobKlass) {
        this.jobKlass = jobKlass;
    }

    public String getJobCorn() {
        return jobCorn;
    }

    public void setJobCorn(String jobCorn) {
        this.jobCorn = jobCorn;
    }

    public String getJobDesc() {
        return jobDesc;
    }

    public void setJobDesc(String jobDesc) {
        this.jobDesc = jobDesc;
    }

    public int getJobShort() {
        return jobShort;
    }

    public void setJobShort(int jobShort) {
        this.jobShort = jobShort;
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }

    public String getJobStatus() {
        return jobStatus;
    }

    public void setJobStatus(String jobStatus) {
        this.jobStatus = jobStatus;
    }

    public boolean isJobLastStatus() {
        return jobLastStatus;
    }

    public void setJobLastStatus(boolean jobLastStatus) {
        this.jobLastStatus = jobLastStatus;
    }

    public int getJobType() {
        return jobType;
    }

    public void setJobType(int jobType) {
        this.jobType = jobType;
    }

    public String getJobRunName() {
        return jobRunName;
    }

    public void setJobRunName(String jobRunName) {
        this.jobRunName = jobRunName;
    }
}
